Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove JSAPI databar code #1758

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

mattrunyon
Copy link
Collaborator

@mattrunyon mattrunyon commented Jan 30, 2024

Removing databar specific JSAPI code since this API will be moved to dh.ui at some point

@mattrunyon mattrunyon self-assigned this Jan 30, 2024
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f0ae055) 45.99% compared to head (7034706) 46.01%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1758      +/-   ##
==========================================
+ Coverage   45.99%   46.01%   +0.01%     
==========================================
  Files         626      626              
  Lines       37576    37559      -17     
  Branches     9450     9443       -7     
==========================================
- Hits        17284    17281       -3     
+ Misses      20237    20223      -14     
  Partials       55       55              
Flag Coverage Δ
unit 46.01% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsmmcken
Copy link
Contributor

Removing databar specific code since this feature will be moved to dh.ui at some point

We've discussed the pyhon api being on ul.table... the JS would always be needed regardless of where the api originates from.

Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just rip the API part out of databars, not the whole UI part (though it will be unused until we do wire it up to API).

Building into deephaven.ui we'll need to extend the model with our data bar options (so where UITable.tsx calls IrisGridModelFactory.makeModel, we'll need some way to add options in there or extend the model returned or have our own factory function or something).

Side note, in the future having plugins for cell renderers might be neat (customer I met with today was asking about them) but not our top priority.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only changes we need is for dataBarOptionsForCell to throw, and remove formatDataBar from the Format type in dh.types.ts.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataBarOptionsForCell throws from IrisGridModel, so just removing it from the table model template. renderTypeForCell returns text from GridModel, so removing that from the table model template as well

@mattrunyon mattrunyon changed the title refactor: Remove databar code refactor: Remove JSAPI databar code Jan 30, 2024
@mattrunyon mattrunyon merged commit cfbbe74 into deephaven:main Jan 31, 2024
7 checks passed
@mattrunyon mattrunyon deleted the remove-formatDatabar branch January 31, 2024 20:04
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants